﻿using Common.ViewModels;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Acornima.Ast;

namespace PlatingLineUI
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {

        private TestVM m_ViewModel = new TestVM();

        public MainWindow()
        {
            InitializeComponent();
            this.DataContext= m_ViewModel;
            PlatingLineUI.Windows.MainWindow mainWindow = new();
            mainWindow.Show();
            ReflexBuildControl.AddWindow(m_ViewModel);
        }

        private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
        {
            ReflexBuildControl.AddWindow(m_ViewModel);
            
            //m_ViewModel.Add();
        }

        private void Btn显示主页面_OnClick(object sender, RoutedEventArgs e)
        {
            PlatingLineUI.Windows.MainWindow mainWindow = new ();
            mainWindow.Show();
        }
    }
}